package com.zhangliuliu.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhangliuliu.bean.InsectPestBean;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

public interface InsectPestService extends IService<InsectPestBean> {
    //添加新虫害
    void addPest(InsectPestBean insectPestBean);
    //查看详细信息
    InsectPestBean select(int id);
    //根据寄生虫的名字和寄主分页查询
   IPage<InsectPestBean>  cutByItem(@Param("pageNo") int pageNo, @Param("pageSize") int pageSize, @Param("name") String name, @Param("host") String host);
    //根据条件动态查询并展示在首页上
    public IPage<InsectPestBean> cut(@RequestParam("pageNO") int pageNo,
                                           @RequestParam("pageSize") int pageSize,
                                           @RequestParam("name") String name,
                                            @RequestParam("host") String host,
                                      @RequestParam("harm") String harm);

}
